package com.ngc.mall.bo;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

/**
 *
 * 订单sku信息BO
 * @author: chenxiaolin
 * @date 2023/8/26 15:11
**/
@Data
@Builder
public class SkuOrderBO {

    private Integer count;

    private BigDecimal actualPrice;

    private Long categoryId;

    public BigDecimal getTotalPrice(){
        return actualPrice.multiply(new BigDecimal(count));
    }

}
